﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="VTMS.Model.Entities.Users,VTMS.Model.Entities" table="users">

    <!-- Primary Key(s) -->
    <id name="UsersId" column="id" type="String">
      <generator class="assigned"/>
    </id>

    <!-- Properties -->
    <property column="pwd" type="String" name="Password" not-null="true" length="45" />
    <property column="name" type="String" name="UsersName" not-null="true" length="45" />
    <property column="email" type="String" name="UsersEmail" not-null="true" length="100" />
    <property column="isactive" type="Boolean" name="UsersIsactive" not-null="true" />
    <set name="Privileges" inverse="true" table="privilege" cascade="all" lazy="false">
      <key column="userid" />
      <one-to-many class="VTMS.Model.Entities.Privilege,VTMS.Model.Entities" />
    </set>
  </class>
</hibernate-mapping>
